package com.gaoxin.api.entity;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 加载yaml配置文件的方法 spring-boot更新到1.5.2版本后locations属性无法使用
 * 
 * @PropertySource注解只可以加载proprties文件,无法加载yaml文件 故现在把数据放到application.yml文件中,spring-boot启动时会加载
 * @author fanyue
 * @email 859485490@qq.com
 * @date 2018-07-12 15:21
 */
@Component
@ConfigurationProperties(prefix = "base-dir")
public class ConfigEntity {
	private String baseDirPath;
	private String secret;
	private String appkey;
	private String appSecret;

	public String getBaseDirPath() {
		return baseDirPath;
	}

	public void setBaseDirPath(String baseDirPath) {
		this.baseDirPath = baseDirPath;
	}

	public String getSecret() {
		return secret;
	}

	public void setSecret(String secret) {
		this.secret = secret;
	}

	public String getAppkey() {
		return appkey;
	}

	public void setAppkey(String appkey) {
		this.appkey = appkey;
	}

	public String getAppSecret() {
		return appSecret;
	}

	public void setAppSecret(String appSecret) {
		this.appSecret = appSecret;
	}

}
